var mongoose = require('./db');
var UserSchema = new mongoose.Schema({
    userId: String,
    userName: String,
    userPwd: String,
    orderList: Array,
    cartList: Array,
    addressList: Array,
    cartList: [
        {
            productImage: String,
            salePrice:Number,
            productName:String,
            productId:String,
            productNum:Number,
            check:{
                type:Boolean,
                default:true
            }
        }
    ]
})
var Users = mongoose.model('Users', UserSchema, 'users');
module.exports = Users;